import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {

  constructor() { }

  color: string;
  birthday = new Date(1988, 3, 15);
  test_name="aaaaaaabbbbbbb";
  currentNum:number=0;

  condition:boolean=true;

  ngOnInit(): void {
    setInterval(()=>{
      if(this.currentNum>3){
        this.currentNum=0;
      }else{
        this.currentNum++;
      }
    },3000);
  }

}
